<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    {{form.csrf_token}}   {#验证器添加的时候必须加上#}
    {{form.user_name.label}}
    {{form.user_name }}
<br>
    {{form.password.label}}
    {{form.password}}
<br>
    {{form.password2.label}}
    {{form.password2}}
<br>
    {{form.submit}}
</form>
</body>
</html>